package com.news.pojo;

import java.io.Serializable;

/**
 * 用户实体类
 * private 私有化属性
 * 无参构造方法
 * get/set访问方法
 * 序列化
 */
public class User implements Serializable{
        private static final long serialVersionUID = 1L;
    /**
     * 用户的id
     */
    private int uid;
    private String uname;
    private String upwd;
    private int urole;

    public User() {
    }


    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getUpwd() {
        return upwd;
    }

    public void setUpwd(String upwd) {
        this.upwd = upwd;
    }

    public int getUrole() {
        return urole;
    }

    public void setUrole(int urole) {
        this.urole = urole;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", uname='" + uname + '\'' +
                ", upwd='" + upwd + '\'' +
                ", urole='" + urole + '\'' +
                '}';
    }
}
